runtime.mspan.nelems (field)
36 uses
runtime (current package)
heapdump.go#L491: for freeIndex := uint16(0); freeIndex < s.nelems; freeIndex++ {
malloc.go#L912: if result < s.nelems {
malloc.go#L914: if freeidx%64 == 0 && freeidx != s.nelems {
malloc.go#L939: if freeIndex == s.nelems {
malloc.go#L941: if s.allocCount != s.nelems {
malloc.go#L942: println("runtime: s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
malloc.go#L952: if freeIndex >= s.nelems {
malloc.go#L958: if s.allocCount > s.nelems {
malloc.go#L959: println("s.allocCount=", s.allocCount, "s.nelems=", s.nelems)
mbitmap.go#L1066: snelems := s.nelems
mbitmap.go#L1417: bytes := divRoundUp(uintptr(s.nelems), 8)
mcache.go#L151: if s.allocCount != s.nelems {
mcache.go#L187: if s.allocCount == s.nelems {
mcache.go#L287: dHeapLive -= int64(s.nelems-s.allocCount) * int64(s.elemsize)
mcentral.go#L150: if freeIndex != s.nelems {
mcentral.go#L184: n := int(s.nelems) - int(s.allocCount)
mcentral.go#L185: if n == 0 || s.freeindex == s.nelems || s.allocCount == s.nelems {
mcentral.go#L238: if int(s.nelems)-int(s.allocCount) > 0 {
mgcsweep.go#L615: for i := uintptr(0); i < uintptr(s.nelems); i++ {
mgcsweep.go#L645: if s.freeindex < s.nelems {
mgcsweep.go#L656: for i := obj/8 + 1; i < divRoundUp(uintptr(s.nelems), 8); i++ {
mgcsweep.go#L669: print("runtime: nelems=", s.nelems, " nalloc=", nalloc, " previous allocCount=", s.allocCount, " nfreed=", nfreed, "\n")
mgcsweep.go#L683: s.gcmarkBits = newMarkBits(uintptr(s.nelems))
mgcsweep.go#L777: if nalloc == s.nelems {
mgcsweep.go#L861: for i := uintptr(0); i < uintptr(s.nelems); i++ {
mheap.go#L424: nelems uint16 // number of object in the span.
mheap.go#L1392: s.nelems = 0
mheap.go#L1401: s.nelems = 1
mheap.go#L1407: s.nelems = uint16((nbytes - (nbytes / goarch.PtrSize / 8)) / s.elemsize)
mheap.go#L1409: s.nelems = uint16(nbytes / s.elemsize)
mheap.go#L1418: s.gcmarkBits = newMarkBits(uintptr(s.nelems))
mheap.go#L1419: s.allocBits = newAllocBits(uintptr(s.nelems))
pinner.go#L271: return divRoundUp(uintptr(s.nelems)*2, 8)
pinner.go#L278: return (*pinnerBits)(newMarkBits(uintptr(s.nelems) * 2))
traceallocfree.go#L67: for i := uintptr(0); i < uintptr(s.nelems); i++ {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |